home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / lib / templates / objc_prj / Main.m next >
Encoding:
Text File  |  1996-02-13  |  1.2 KB  |  48 lines

  1. /* -------------------------------------------------------------------
  2.  
  3.     Project: 
  4.  
  5.     Objective-C main source file for the project
  6.  
  7.     This file was automatically generated by OS/2 Project Builder
  8.     COPYRIGHT (C), 1995, Thomas Baier
  9.  
  10.     Unregistered version
  11.  
  12.     Do not edit this file manually!
  13.  
  14.     COPYRIGHT (C), 1995
  15.     ALL RIGHTS RESERVED.
  16.  
  17.     Date:                           Rev:
  18.     Sun Dec 03 23:12:40 1995
  19.  
  20.  
  21.                               Main File                              
  22.  
  23. ------------------------------------------------------------------- */
  24. #include <pm/pm.h>
  25.  
  26. /* --------------------- Function Prototypes ---------------------- */
  27. int main (int argc, char **argv);
  28.  
  29. /* ------------------------ Implementation ------------------------ */
  30. int main (int argc, char **argv)
  31. {
  32.   id application;
  33.   id interfaceFile;
  34.  
  35.   /* ----------------------- Initialization ----------------------- */
  36.   registerClasses ();
  37.  
  38.   application = [[StdApp alloc] init];
  39.   interfaceFile = [application loadIBFile: "main.oib"];
  40.  
  41.   /* ----------------------- Run Application ---------------------- */
  42.   [application run];
  43.  
  44.   /* ------------------------ Free Objects ------------------------ */
  45.   [interfaceFile freeObjects];
  46.   [application free];
  47. }
  48.